var chart11 = echarts.init(document.getElementById('chart11'), chartTheme);
var option = {
	color: ['#3dfce3','#18c0cc','#0c9099','#184f66'],
    backgroundColor: '#08121c',
    tooltip : {
        trigger: 'axis',
        axisPointer : {            // 坐标轴指示器，坐标轴触发有效
            type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
        }
    },
    legend: {
        data: ['60岁以上老年人','65岁以上老年人','80岁以上老年人','纯老年人家庭人口数'],
        textStyle: {
            color: '#fff'
        }
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis:  {
        type: 'value',
        axisLabel: {textStyle:{color:'#fff'}},
    },
    yAxis: {
        axisLabel: {textStyle:{color:'#fff'}},
        type: 'category',
        data: ['木林镇', '仁和镇', '光明街道', '北务镇', '北小营', '北石槽', '南彩镇', '南法信', '双丰镇', '后沙峪镇', '大孙各庄镇', '天竺镇', '张镇', '旺泉镇', '李桥镇', '李遂镇', '杨镇', '牛栏山', '石园街道', '空港街道', '胜利街道', '赵全营', '马坡镇', '高丽营', '龙湾屯镇']
    },
    series: [
        {
            name: '60岁以上老年人',
            type: 'bar',
            stack: '比例',
            label: {
                normal: {
                    show: false,
                    position: 'insideRight'
                }
            },
            barCategoryGap: '40%',
            data: [6991, 6930, 3664, 2531, 6800, 3218, 7676, 3460, 232, 4546, 6466, 2567, 5461, 913, 8423, 4208, 10884, 5327, 2920, 1202, 6439, 6044, 3999, 4910, 4028]
        },
        {
            name: '65岁以上老年人',
            type: 'bar',
            stack: '比例',
            label: {
                normal: {
                    show: false,
                    position: 'insideRight'
                }
            },
            data: [4701, 4680, 2592, 1666, 4010, 2145, 4867, 2292, 131, 2933, 4123, 1622, 3514, 573, 4329, 3582, 6826, 3768, 1699, 742, 4567, 3923, 2860, 3710, 2441]
        },
        {
            name: '80岁以上老年人',
            type: 'bar',
            stack: '比例',
            label: {
                normal: {
                    show: false,
                    position: 'insideRight'
                }
            },
            data: [896, 916, 454, 346, 860, 393, 934, 425, 18, 595, 803, 273, 618, 64, 1100, 543, 1316, 648, 206, 155, 767, 754, 486, 620, 450]
        },
        {
            name: '纯老年人家庭人口数',
            type: 'bar',
            stack: '比例',
            label: {
                normal: {
                    show: false,
                    position: 'insideRight'
                }
            },
            data: [1785, 563, 1910, 34, 680, 472, 52, 1560, 587, 701, 950, 97, 150, 543, 936, 235, 3465, 243, 1492, 89, 3218, 751, 710, 510, 560]
        }
    ]
};
chart11.setOption(option);